package cn.yuanqiao.archive.Identify.mapper;

import cn.yuanqiao.archive.Identify.domain.DestroyCar;
import cn.yuanqiao.archive.Identify.domain.vo.DestroyCarVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DestroyCarMapper {
    void insert(DestroyCar destroyCar);

    void update(DestroyCar destroyCar);

    void deleteByDaId(Long id);

    DestroyCar findById(Long id);

    List<DestroyCar> findAll(DestroyCar destroyCar);

    List<DestroyCarVo> findDestroyCarVo(DestroyCar destroyCar);

    void bindDestroy(DestroyCar destroyCar);

    Long getCategoryId(DestroyCar destroyCar);

    List<DestroyCarVo> findDestroyCarVoByItem(@Param("tenantCode")String tenantCode, @Param("fileTableName") String fileTableName, @Param("folderTableName")String folderTableName, @Param("destroyId")Long destroyId);

    List<DestroyCarVo> findDestroyCarVoByFolder(@Param("tenantCode")String tenantCode, @Param("fileTableName") String fileTableName, @Param("folderTableName")String folderTableName, @Param("destroyId")Long destroyId);

    List<DestroyCarVo> findDestroyCarVoByYqda(@Param("tenantCode")String tenantCode, @Param("fileTableName") String fileTableName, @Param("destroyId")Long destroyId);

    DestroyCar findByDaId(Long daId);
}
